package com.in.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @ClassName LoginDto
 * @Description
 * @Author liulianjia
 * @Date 2024/11/26 14:17
 */
@Data
public class LoginDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 邮箱 */
    @NotBlank(message = "邮箱不能为空！")
    private String username;

    /** 密码 */
    private String password;

    /** 验证码 */
    private String code;

    /** 登录类型：password、密码；yzm、验证码, 默认密码登录 */
    private String type = "password";
}
